// @ts-nocheck
import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/login",
      component: () => import("@/views/Login/index.vue"),
    },
    {
      path: "/",
      children: [
        {
          path: "/",
          component: () => import("@/views/Layout/index.vue"),
        },
        {
          path: "/test",
          component: () => import("@/views/Test/index.vue"),
        },
        {
          path: "/category/:id",
          component: () => import("@/views/Category/index.vue"),
        },
        {
          path: "/goods/:id",
          component: () => import("@/views/Goods/index.vue"),
        },
      ],
    },
  ],
});

export default router;
